package com.sss.hloster03;
import java.util.Scanner;
public class TestStringMethod3 {

	public static void main(String[] args) {
		String result =String.valueOf(100);
		Scanner input= new Scanner(System.in);
		System.out.print("请输入你去年一年的薪水总和：");
		int lastSalary = input.nextInt();
	//通过String类的静态方法将lasSalry从int型转换为String字符串
		String strSalary= String.valueOf(lastSalary);
		System.out.println("你去年一年的薪水总和是：" +strSalary.length()+"位数！");
		String date ="Mary,F,1987";
		String[] splitStr=date.split(",");//用","将字符串分隔成一个新的字符串数组
		System.out.println("Mary,F,1987使用，分隔后的结果：");
		for(int i=0;i<splitStr.length;i++) {
			System.out.println(splitStr[i]);
		}
	
	}

}
